<{include file="section/admin/header2.tpl"}>

<script type="text/javascript" src="<{$smarty.const._DOMAIN_SC_CDN_}>/upload/zx/sc/js/highslide/highslide-with-html.js"></script>
<link rel="stylesheet" type="text/css" href="<{$smarty.const._DOMAIN_SC_CDN_}>/upload/zx/sc/js/highslide/highslide.css" />
<script type="text/javascript">
hs.graphicsDir = '<{$smarty.const._DOMAIN_SC_CDN_}>/upload/zx/sc/js/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header';
</script>
<div class="box02">
	<div class="box02_1">
		<div class="search02 clear">
			<form action="/audit/" method="get" name="frm" id="frm">
				<table>
					<tr>
						<td>
							<div class="select">
								<span style="width:100px;">
									<select name="query" id="query" onchange="change_query(this.value);">
									<{foreach from=$arr_status item=status key=status_key}>
										<option <{if $current_status==$status_key}>selected<{/if}> value="<{$status_key}>"><{$status}></option>
									<{/foreach}>
									</select>
								</span>
							</div>
						</td>
					</tr>
				</table>
			</form>
		</div>        
		<div class="line1"></div>
		<div class="table01">
			<table  cellpadding="0" cellspacing="0" width="100%" border="0" id="table" style="word-wrap:break-word;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;">
				<tr class="th">
					<th style="width:160px;"><div>促销信息标题</div></th>
					<th style="width:160px;"><div>举报原因</div></th>
					<th style="width:100px;"><div>举报人</div></th>
					<th style="width:100px;"><div>举报时间</div></th>
					<th style="width:100px;"><div>处理</div></th>		
					<{if $current_status eq 'adjust' or $current_status eq 'removed'}>
					<th style="width:160px;"><div>处理说明</div></th>		
					<{/if}>
				</tr>
				<{foreach from=$exposures item=exposure }>
					<tr class="bg">
						<td><div><{$exposure.title}>&nbsp;</div></td>
						<td class="tl" ><div><{$exposure.msg}>&nbsp;</div></td>
						<td><div><{$exposure.uname}>&nbsp;</div></td>
						<td width="100px"><div><{'Y-m-d H:i:s'|@date:$exposure.create_time}>&nbsp;</div></td>
						<td width="150px"><div>
							<{if $exposure.status eq "undeal" }>
							<a href="" onclick="return hs.htmlExpand(this)">需调整</a>|
								<div class="highslide-maincontent">
									<form id="adjust_frm_<{$exposure.id}>"  name="adjust_frm_<{$exposure.id}>" method="post">
										<table   cellpadding="0" cellspacing="0" width="100%" border="0" style="word-wrap:break-word;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;">
										<tr><td style="width:80px;">举报内容：</td><td align="left"><{$exposure.title}></td></tr>
										<tr><td style="width:80px;">举报原因：</td><td  align="left"><{$exposure.msg}></td></tr>
										<tr><td style="width:80px;">处理方式：</td><td  align="left">需调整</td></tr>
										<tr><td style="width:80px;"><span class="red">*</span>说明：</td>
										<td align="left"><textarea  name="explain" id="explain" class="in2" onblur="this.className='in2'" onfocus="this.className='in1'" rows="6" cols="40"></textarea></td></tr>
										<tr ><td colspan="2" align="center"><input type="button" name="onsubmit" value="提交" onclick="confirm('adjust_','<{$exposure.id}>','adjust')"/></td></tr>
										</table>							
									</form>
								</div> 
							<a href="javascript:void(0)" onclick="ignore_operation('<{$exposure.id}>','ignore');return false;">无操作</a>	|				
							<a href="" onclick="return hs.htmlExpand(this)">删除</a>
								<div class="highslide-maincontent">
									<form id="removed_frm_<{$exposure.id}>"  name="removed_frm_<{$exposure.id}>" action="post">
										<table cellpadding="0" cellspacing="0" width="100%" border="0"  style="word-wrap:break-word;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;">
										<tr><td style="width:80px;">举报内容：</td><td align="left"><{$exposure.title}></td></tr>
										<tr><td style="width:80px;">举报原因：</td><td align="left"><{$exposure.msg}></td></tr>
										<tr><td style="width:80px;">处理方式：</td><td align="left">删除</td></tr>
										<tr><td style="width:80px;"><span class="red">*</span>说明：</td>
										<td align="left"><textarea  name="explain" id="explain" class="in2"  onblur="this.className='in2'" onfocus="this.className='in1'" rows="6" cols="40"></textarea></td></tr>
										<tr ><td colspan="2"><input type="button" name="onsubmit" value="提交" onclick="confirm('removed_','<{$exposure.id}>','removed')"/></td></tr>
										</table>							
									</form>
								</div> 
							<{/if}>&nbsp;
						</div></td>				
						<{if $current_status eq 'adjust' or $current_status eq 'removed'}>
						<td><div><{$exposure.explain}>&nbsp;</div></td>		
						<{/if}>
					</tr>
				<{/foreach}>
				
			</table>
		</div>
		<div class="page clear">
		共计：<{$pagecount}>
		<{$pagination}>
		</div>
	
	</div>	
</div>	
<script type="text/javascript">

function change_query(query)
{
   var url = "/jubao/index/"+query;
   window.location = url;
}
function ignore_operation(explosure_id,action)
{
	var query = document.getElementById("query");	
    if( ! query) return false;	
	var query_value	= query.value;
	var url = "/jubao/action/"+action+"/"+explosure_id+"/"+query_value;
	window.location = url;
}
function confirm(prefix,explosure_id,action)
{
	var form = document.getElementById(prefix +'frm_'+ explosure_id);
	var explain = form.explain;	
	var query = document.getElementById("query");		
    if( ! explain) return false;
    if( ! query) return false;
	var explain_value	= explain.value;
	if( ! explain_value)
	{
		alert("说明不能为空！");
		return false;
	}
	var query_value	= query.value;
	var url = "/jubao/action/"+action+"/"+explosure_id+"/"+query_value;

	form.method="post";
	form.action=url;
	form.submit();
	
}

</script>
<{include file="section/admin/footer2.tpl"}>
